package com.ycrlkj.android.modulescore.main.viewmodel;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.ycrlkj.android.modulescore.main.entity.Vehicle;

public class VehicleViewModel extends ViewModel {

    public MutableLiveData<Integer> type;

    public MutableLiveData<Integer> getType() {
        if(type == null){
            type = new MutableLiveData<>();
            type.setValue(1);
        }
        return type;
    }

    public MutableLiveData<Vehicle> vehicle;

    public MutableLiveData<Vehicle> getVehicle() {
        if(vehicle == null){
            vehicle = new MutableLiveData<>();
            vehicle.setValue(new Vehicle());
        }
        return vehicle;
    }


}
